<div class="strategy" ng-init="init();start()">
  <div>
    <div>
      <span ng-bind="code_info.product_name"></span>
      <span ng-bind="code_info.product_code"></span>
    </div>
    <div>
      <span>最新价</span>
      <span ng-bind="(code_info.last_price|retain_float)" class="global_color_red"></span>
    </div>
    <div>
      <span>可用余额</span>
      <span ng-bind="code_info.enable_balance"></span>
    </div>
    <div>
      <div class="pay" ui-sref="pay">充值</div>
    </div>
  </div>

  <div>
    <div>策略执行金</div>
    <div>
      <div style="margin-bottom:0.15rem;">
        <span ng-class="{'actived':strate_num_actived== $index}" ng-repeat="item in list" ng-bind="item.name" ng-click="cash($index)"></span>
      </div>
    </div>
  </div>
  <div class="enable_tip">
    可购买{{code_info.product_name}}<span ng-bind="enable_buy||'0'" class="global_color_red"></span>股,资金利用率<span ng-bind="((use_rate*100|retain_float)||'0.00')+'%'" class="global_color_red"></span>
  </div>
  <div class="baozhangjin">
    <span>履约保证金</span>
    <div>
      <span ng-class="{'actived':strate_tab_actived == $index}" ng-repeat="item in sub" ng-bind="item.deposit_balance" ng-click="strate_tab($index)"></span>
    </div>
  </div>

  <div>
    <div class="zhiying">
      <span>止盈</span>
      <span ng-bind="'+'+((sub[strate_tab_actived].profit_rate*100|retain_float)||'0.00')+'%'"></span>
    </div>
    <div class="zhiying">
      <span>止损</span>
      <span ng-bind="'-'+((sub[strate_tab_actived].deficit_rate*100|retain_float)||'0.00')+'%'"></span>
    </div>
    <div class="zhiying">
      <span>延期</span>
      <span>最多{{sub[strate_tab_actived].defer_count}}次</span>
    </div>
    <div class="zhiying">
      <span>延期费单价</span>
      <span ng-bind="sub[strate_tab_actived].defer_fare+'元/次'"></span>
    </div>
    <div class="zhiying">
      <span>预定策略到时</span>
      <span>
        <p style="text-align:right;">24小时后</p>
        <p style="text-align:right;font-size:12px">(非交易日顺延)</p>
      </span>
    </div>
  </div>

  <div class="jiaoyi_fei">
    <span>综合服务费</span>
    <div>
      <span ng-bind="fare.trade_fare||'0'" class="global_color_red"></span>元
    </div>
  </div>
  <div class="jiaoyi_fei">
    <span>履约保证金</span>
    <div>
      <span ng-bind="fare.deposit_balance||'0'" class="global_color_red"></span>元
    </div>
  </div>
  <div class="jiaoyi_fei" style="border-bottom:1px solid #ccc;border-top:1px solid #ccc;">
    <span></span>
    <div>
      总计<span ng-bind="tol_fare||'0'" class="global_color_red"></span>元
    </div>
  </div>
  <div class="text-center" style="color:#888;padding:0.2rem;">
    在止盈线和止损线的范围内，可申请延期
  </div>
</div>
<div class="strategy_footer" ng-style="iphonex_footer">
  <div>
    <span ng-class="{actived:readed}" ng-click="readed=!readed"></span>
    <p>我已阅读并同意<span style="color: #f85256;" ng-click="go_to_hezuo()">《合作协议》</span></p>
  </div>
  <div ng-click="ok_comfirm()" ng-class="{'disabled':enable_buy<100}">
    创建
    <p></p>
  </div>
</div>